package scoutobahn.xml;
/**
 * Interface defining a provider for OSM items.
 * @author mark
 *
 */
public interface OsmItemProvider {
    /**
     * Returns weather there is an item with the given id.
     * @param id The id of the element to lookup
     * @param type The type of the OsmItem
     * @return Weather the item with the id exists
     */
    boolean hasItem(long id, OsmXmlTypes type);
    /**
     * Returns the OsmItem with the given id of the given type.
     * @param id The id
     * @param type The type
     * @return The OsmItem
     */
    OsmItem getItemById(long id, OsmXmlTypes type);
}
